package com.yuwei.common.adapter
import com.yuwei.common.entity.BannerEntity

import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder
import com.yuwei.image.glide.GlideImageLoader

/**
 * 图片Banner适配器
 */
class ImageBannerAdapter(data: MutableList<BannerEntity>): BannerImageAdapter<BannerEntity>(data) {
    override fun onBindView(holder: BannerImageHolder, data: BannerEntity, position: Int, size: Int) {
        GlideImageLoader.loadResImage(holder.imageView.context, data.resId, holder.imageView)
    }
}